/*
 * $Id: StaffGetCommonInfoTest.java 81 2012-12-13 16:34:51Z Denis.Skalsky@gmail.com $
 */
package com.globallogic.skalskyy.javabasic.valstaff;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class StaffGetCommonInfoTest extends StaffTestFixture {
	
	@Test
	public void testGetSoftwareEngineers() {
		String[] result = new String[2];
		result[0] = this.DenysSkalskyy.toString();
		result[1] = this.SergiiSyabruk.toString();
		
		assertArrayEquals(result, this.staff.getSoftwareEngineers());
	}
	
	@Test
	public void testGetTestEngineers() {
		String[] result = new String[2];
		result[0] = this.DenysKorablev.toString();
		result[1] = this.NastyaLogvinova.toString();
		
		assertArrayEquals(result, this.staff.getTestEngineers());
	}
	
	@Test
	public void testGetPositions() {
		String[] result = new String[3];
		result[0] = "QA lead engineer";
		result[1] = "middle software engineer";
		result[2] = "senior software engineer";
		
		assertArrayEquals(result, this.staff.getPositions());
	}
	
	@Test
	public void testGetStaffCount() {
		assertEquals(4, this.staff.getCount());
	}	
}